
log using "$rootpath/log/Table_A8_Results.log", replace
eststo clear
use "$rootpath/processed_data/TRI_estimation_data.dta", clear
sort frsnumber year
xtset frsnumber year

reghdfe  log_damage2 treatXpost, absorb(frsnumber n5#year) vce(cluster frsnumber)
estimates store damages_1

reghdfe  log_crit_emissions treatXpost, absorb(frsnumber n5#year) vce(cluster frsnumber)
estimates store emissions_1

esttab damages_1 emissions_1 using "$rootpath/table_graph/TBL_A8.tex",  star( * 0.1 ** 0.05 *** 0.01) cells(b(star fmt(3)) se(par fmt(3))) keep(treatXpost _cons) scalars(N F) ar2 replace 
log close
